$(function() {
	module("WikiText");
	test("No transformation", 1, function() {
		var text = "A dog went to the store";
		var result = wikid.wikiTextToHtml(text, null);
		var expected = "<p>A dog went to the store</p>";
		equals(result, expected, "Both are equal");
	});
	
	test("Object Reference", 1, function() {
		var text = "A dog went to the [-location]";
		var ref = {};
		ref.location = "store";
		var result = wikid.wikiTextToHtml(text, ref);
		var expected = "<p>A dog went to the store</p>";
		equals(result, expected, "Both are equal");
	});
	
	test("Deep Object Reference", 1, function() {
		var text = "A dog went to the [-location.name] at [-location.address]";
		var ref = {};
		ref.location = {};
		ref.location.name = "store";
		ref.location.address = "12th street";
		var result = wikid.wikiTextToHtml(text, ref);
		var expected = "<p>A dog went to the store at 12th street</p>";
		equals(result, expected, "Both are equal");
	});	
	
	
	

});